<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
 
 <script language="JavaScript" src="<%=request.getContextPath()+"/js/gen_validatorv31.js"%>" type="text/javascript"></script>
 
 </head>
  
  <body>
  	
 <jsp:include page="Header.jsp"></jsp:include>
                   
		<form action="<%=request.getContextPath()+"/AddCourse"%>" name="postshedule">
		
    <table border="1" width="785" height="173">
    
    <tr bgcolor="#FFOOCCFFDD"><i> Add Course Info</i></tr>
    <caption>COURSE INTRODUCTION</caption>
    <tr>
    <br/>
     <tr>
    
   
                                <td width="128"><span class="style17"><font color="higblue"><b>CourseTitle</b></font> </span></td>
                                <td width="269"><label>
                              <input type="text" name="cname">
                                </label></td>
                              </tr>
                              
                             
 
 

                              <tr>
                                <td><span class="style17"><font color="higblue"><b>CourseDescription</b></font></span></td>
                                <td>
                                 
                         
                                <textarea cols="30" rows="5"  name="cdescription" ></textarea>
                                     
                                    
                                    
                                </td>
                              </tr>
                              <br/>
                              
<tr>
                             <td align="right">
                             <input type="submit" name="submit" value="Insert Course">
                              </td></tr>
    </table>
    
    
    
    <br/>
			
                  <jsp:include page="Footer.jsp"></jsp:include>
    </form>
    <script language="JavaScript" type="text/javascript">
//You should create the validator only after the definition of the HTML form
  var frmvalidator  = new Validator("postshedule");

  frmvalidator.addValidation("cname","req","CourseName is required");
    frmvalidator.addValidation("cname","alpha","CourseName is Only Characters");
    frmvalidator.addValidation("cdescription","req","cdescription is required");
    frmvalidator.addValidation("cdescription","alpha","cdescription is Only Characters");
  </script>
    
  </body>
</html>
